package com.jeesite.modules.kj.api.vo.response;

import com.jeesite.modules.kj.api.vo.response.base.BaseResponseVo;
import com.jeesite.modules.kj.entity.KjBadge;
import com.jeesite.modules.kj.entity.KjQuestion;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;

@Data
public class QuestionResponseVo extends BaseResponseVo<KjQuestion> {
    @ApiModelProperty(value = "问题ID")
    private String id;
    @ApiModelProperty(value = "问题标题")
    private String title;
    @ApiModelProperty(value = "回复状态")
    private String replyStatus;
    @ApiModelProperty(value = "发起时间")
    private Date createDate;


    @ApiModelProperty(value = "问题类型")
    private String questionType;

    public QuestionResponseVo() {
    }

    @Override
    public void setEntity(KjQuestion entity) {
        BeanUtils.copyProperties(entity, this);
    }

    public QuestionResponseVo(KjQuestion entity) {
        setEntity(entity);
    }
}
